package br.com.datatraffic.fiscal.entidades;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name="TBHORA_AJUSTE_PESO")
public class HoraAjustePeso implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id	
	@Column(name = "HORA_AJUSTE_PESO_ID", unique = true, nullable = false, precision = 38, scale = 0)
	@SequenceGenerator(name = "SQ_HORA_AJUSTE_PESO", sequenceName = "SQ_HORA_AJUSTE_PESO", allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SQ_HORA_AJUSTE_PESO")
	private Long id;	
	
	@Column(name = "PERCENTUAL_AJUSTE")
	private Double percentualAjuste;
	
	@Column(name = "HORA_AJUSTE")
	private Integer horaAjuste;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CLASSIFICACAO_ID")
	private Classificacao5 classificacao;
	
	public HoraAjustePeso() {}
	
	public HoraAjustePeso(Long id) {
		this.id = id;		
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Double getPercentualAjuste() {
		return percentualAjuste;
	}
	public void setPercentualAjuste(Double percentualAjuste) {
		this.percentualAjuste = percentualAjuste;
	}
	public Integer getHoraAjuste() {
		return horaAjuste;
	}
	public void setHoraAjuste(Integer horaAjuste) {
		this.horaAjuste = horaAjuste;
	}
	public Classificacao5 getClassificacao() {
		return classificacao;
	}
	public void setClassificacao(Classificacao5 classificacao) {
		this.classificacao = classificacao;
	}
		
}